package com.woniuxy.charin.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName contracts
 */
@TableName(value ="contracts")
@Data
public class Contracts implements Serializable {
    private Integer id;

    private String contractName;

    private String contractNumber;

    private String contractCategory;

    private String contractDuration;

    private String franchisor;

    private String franchisorResponsiblePerson;

    private String ourCompany;

    private String ourResponsiblePerson;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT")
    private Date signingDate;

    private String signingLocation;

    private BigDecimal amount;

    private String paymentMethod;

    private Integer installmentNumber;

    private String proportionPerInstallment;

    private String contentAndRequirements;

    private String achievementConditions;

    private String notes;

    private Integer customerId;
    private Integer formId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private String status;
    @TableLogic(delval = "1", value = "0")//这是一个逻辑删除的字段
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;
    private static final long serialVersionUID = 1L;
}